/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author Asus
 */
public class Periksa {
private String nim;
public Periksa() {}

    public String getNim() {
        return nim;
    }

    public void setNim(String nim) {
        if (nim.length()==9) {
            this.nim=nim;
        }
        else {
            try {
                throw new Exception("Panjang nim mahasiswa yaitu 9 digit");
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(null, ex.getMessage());
                Logger.getLogger(Periksa.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

}
